package main

import (
	"fmt"
	"sort"
)

func main() {

	var m map[int]string = map[int]string{
		1: "红烧肉",
		2: "清蒸鱼",
		3: "溜大虾",
		4: "鲍鱼饭",
	}

	fmt.Println(m)

	var keys []int
	for k, _ := range m {
		keys = append(keys, k)
	}

	sort.Ints(keys)
	fmt.Println(keys)

	m[1] = "天王盖地虎"
	fmt.Println(m)

	modify(m)
	fmt.Println(m)

}

func modify(m map[int]string) {

	m[2] = "小鸡炖蘑菇"

}
